package dhtpdud;

class MyClass {
	
	int i_num;
	double d_num;
	String string_value;

	public MyClass( int i ) {
		i_num = i;
	}
	
	public MyClass( int i, double d ) {
		i_num = i;
		d_num = d;
	}
	
	public MyClass( int i, double d, String _string ) {
		i_num = i;
		d_num = d;
		string_value = _string;
	}
	
	public void valuePrint() {
		System.out.println("***** print *****");
		System.out.println("int : " + i_num);
		System.out.println("double : " + d_num );
		System.out.println("string : " + string_value );
		System.out.print("\n");
	}

}

public class Java_2011_10_10 {

public static void main ( String[] args ){
		
		MyClass myClass = new MyClass(10);
		myClass.valuePrint();
		
		MyClass myClass2 = new MyClass(10, 100.1);
		myClass2.valuePrint();
		
		MyClass myClass3 = new MyClass(10, 100.1, "My String");
		myClass3.valuePrint();
		
	}

}
